package han.chensing.latos.common.level.util;

import java.util.Objects;

public class ChangeHelper {
    private Object object;
    private ChangeHelper(Object object) {
        this.object = object;
    }

    public boolean checkChange(Object o){
        boolean equals = Objects.equals(o, object);
        if (equals)return false;
        object=o;
        return true;
    }

    public static ChangeHelper of(Object o){
        return new ChangeHelper(o);
    }
}
